package com.wei.service;

import com.wei.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wei.entity.vo.BaseCourseVo;
import com.wei.entity.vo.CourseInfo;
import com.wei.entity.vo.CoursePublishVo;
import com.wei.entity.vo.CourseQueryVo;

import java.util.Map;

/**
 * @author HASEE
 * @description 针对表【edu_course(课程)】的数据库操作Service
 * @createDate 2022-11-23 09:57:54
 */
public interface CourseService extends IService<Course> {

    String addCourseInfo(CourseInfo courseInfo);

    CourseInfo queryCourseInfo(Long id);

    void updateCourseData(CourseInfo courseInfo);

    CoursePublishVo getPublishInfo(String courseId);

    void publishCourse(String courseId);

    void deleteCourse(String courseId);

    Map<String, Object> queryCoursePage(Long current, Long limit, CourseQueryVo courseQueryVo);

    BaseCourseVo getCourseInfoById(String courseId);
}
